package net.knightwatch.kwtools.walkthrough;

import java.util.ArrayList;
import java.util.Date;

import net.knightwatch.kwtools.walkthrough.items.Item;

/**
 * @author  Nick
 */
public class Potential {
	private long id; //Primary Key
	private long buildingId;
	private long customerId; // Foriegn Key
	private String name;
	private Boolean complete; // Not Complete or Complete
	private long msCreateTime;
	private long msProjectedStart;
	private ArrayList<Item> items;
	private String scopeOfWork;
	private int itemCount = 0;
	
	public Potential() {
		setComplete(false);
		items = new ArrayList<Item>();
	}
	public Potential(long customerId) {
		setComplete(false);
		items = new ArrayList<Item>();
		this.customerId = customerId;
	}
	public ArrayList<Item> getItems(){
		return this.items;
	}
	public void setItems(ArrayList<Item> items){
		this.items = items;
	}
	public void setItemCount(int count){
		this.itemCount = count;
	}
	public int getItemCount(){
		return this.itemCount;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Boolean getComplete() {
		return complete;
	}
	public void setComplete(Boolean complete) {
		this.complete = complete;
	}

	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public void addItem(Item item) {
		this.items.add(item);
	}
	public long getCustomerId() {
		return customerId;
	}
	public void setCustomerId(long customerId) {
		this.customerId = customerId;
	}
	public String getCreateDate(){
		
		Date curDateTime = new Date(msCreateTime);
		return curDateTime.toString();
	}
	public long getMsCreateTime(){
		return this.msCreateTime;
	}
	public void setMsCreateTime(long msCreateTime) {
		this.msCreateTime = msCreateTime;
	}
	public long getMsProjectedStartDate() {
		return msProjectedStart;
	}
	public void setMsProjectedStartDate(long msProjectedStart) {
		this.msProjectedStart = msProjectedStart;
	}
	public long getBuildingId() {
		return buildingId;
	}
	public void setBuildingId(long buildingId) {
		this.buildingId = buildingId;
	}
	public void setScopeOfWork(String scopeOfWork) {
		// TODO Auto-generated method stub
		this.scopeOfWork = scopeOfWork;
		
	}
	public String getScopeOfWork(){
		return this.scopeOfWork;
	}
	public String getProjectedStartDate() {
		// TODO Auto-generated method stub
		Date curDateTime = new Date(msProjectedStart);
		return curDateTime.toString();
	}
}
